package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MdjfCaseBczlMapper;
import com.ruoyi.system.domain.MdjfCaseBczl;
import com.ruoyi.system.service.IMdjfCaseBczlService;

/**
 * 矛盾纠纷--事件办结--补充资料Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-28
 */
@Service
public class MdjfCaseBczlServiceImpl implements IMdjfCaseBczlService 
{
    @Autowired
    private MdjfCaseBczlMapper mdjfCaseBczlMapper;

    /**
     * 查询矛盾纠纷--事件办结--补充资料
     * 
     * @param caseBczlId 矛盾纠纷--事件办结--补充资料主键
     * @return 矛盾纠纷--事件办结--补充资料
     */
    @Override
    public MdjfCaseBczl selectMdjfCaseBczlByCaseBczlId(Long caseBczlId)
    {
        return mdjfCaseBczlMapper.selectMdjfCaseBczlByCaseBczlId(caseBczlId);
    }

    /**
     * 查询矛盾纠纷--事件办结--补充资料列表
     * 
     * @param mdjfCaseBczl 矛盾纠纷--事件办结--补充资料
     * @return 矛盾纠纷--事件办结--补充资料
     */
    @Override
    public List<MdjfCaseBczl> selectMdjfCaseBczlList(MdjfCaseBczl mdjfCaseBczl)
    {
        return mdjfCaseBczlMapper.selectMdjfCaseBczlList(mdjfCaseBczl);
    }

    /**
     * 新增矛盾纠纷--事件办结--补充资料
     * 
     * @param mdjfCaseBczl 矛盾纠纷--事件办结--补充资料
     * @return 结果
     */
    @Override
    public int insertMdjfCaseBczl(MdjfCaseBczl mdjfCaseBczl)
    {
        mdjfCaseBczl.setCreateTime(DateUtils.getNowDate());
        return mdjfCaseBczlMapper.insertMdjfCaseBczl(mdjfCaseBczl);
    }

    /**
     * 修改矛盾纠纷--事件办结--补充资料
     * 
     * @param mdjfCaseBczl 矛盾纠纷--事件办结--补充资料
     * @return 结果
     */
    @Override
    public int updateMdjfCaseBczl(MdjfCaseBczl mdjfCaseBczl)
    {
        mdjfCaseBczl.setUpdateTime(DateUtils.getNowDate());
        return mdjfCaseBczlMapper.updateMdjfCaseBczl(mdjfCaseBczl);
    }

    /**
     * 批量删除矛盾纠纷--事件办结--补充资料
     * 
     * @param caseBczlIds 需要删除的矛盾纠纷--事件办结--补充资料主键
     * @return 结果
     */
    @Override
    public int deleteMdjfCaseBczlByCaseBczlIds(Long[] caseBczlIds)
    {
        return mdjfCaseBczlMapper.deleteMdjfCaseBczlByCaseBczlIds(caseBczlIds);
    }

    /**
     * 删除矛盾纠纷--事件办结--补充资料信息
     * 
     * @param caseBczlId 矛盾纠纷--事件办结--补充资料主键
     * @return 结果
     */
    @Override
    public int deleteMdjfCaseBczlByCaseBczlId(Long caseBczlId)
    {
        return mdjfCaseBczlMapper.deleteMdjfCaseBczlByCaseBczlId(caseBczlId);
    }
}
